var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, o, n) {
    var r, a = arguments.length, c = a < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, n); else for (var i = t.length - 1; 0 <= i; i--) (r = t[i]) && (c = (a < 3 ? r(c) : 3 < a ? r(e, o, c) : r(e, o)) || c);
    return 3 < a && c && Object.defineProperty(e, o, c), c;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("GameManager"), s = e("AudioManager"), c = e("WebManager"), l = cc._decorator, d = l.ccclass, u = l.property, p = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.visitBtn = null, t.shadow = null, t;
    }
    return i(t, e), t.prototype.onClickVisit = function() {
        s.default.getInstance().playAudio("按钮2"), c.default.getInstance().sentLog("点击观看界面观看按键");
        var e = r.default.getInstance().gameView, t = e.players.filter(function(t) {
            return !t.model.isDead() && t.model.group == e.followPlayer.model.group;
        });
        0 < t.length ? (e.followPlayer = t[0], this.visitBtn.node.active = !1, this.shadow.active = !1) : r.default.getInstance().endGame();
    }, t.prototype.onClickBack = function() {
        s.default.getInstance().playAudio("按钮2"), c.default.getInstance().sentLog("点击观看界面返回按键"), 
        r.default.getInstance().endGame();
    }, t.prototype.start = function() {}, a([ u(cc.Button) ], t.prototype, "visitBtn", void 0), 
    a([ u(cc.Node) ], t.prototype, "shadow", void 0), a([ d ], t);
}(cc.Component);

n.default = p;